package com.alibaba.citrus.ots.sales.plan.api.statistics;

import com.alibaba.citrus.ots.sales.plan.dto.api.request.DeleteSalesPlanScItemStatRequest;
import com.alibaba.citrus.ots.sales.plan.dto.api.response.GoodsOwnershipDepartmentResponse;
import com.alibaba.citrus.ots.sales.plan.sdo.SalesPlanStatScItemSDO;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;
import com.alibaba.lattice2.epoch.sdk.model.Result;

import java.util.List;
import java.util.Map;

/**
 * @author yuhailin
 * @description:
 * @date 2021-09-27 10:27
 */
@MeshFlowService(apps = {"bc_ots"}, name = "salesPlanScItemStatWriteService")
public interface SalesPlanScItemStatWriteService {
    /**
     * 货品维度删除
     *
     * @param deleteSalesPlanScItemStatRequest
     * @return
     */
    Result<Boolean> deletePlanScItem(DeleteSalesPlanScItemStatRequest deleteSalesPlanScItemStatRequest);

    /**
     * 货品批量更新
     *
     * @param salesPlanScItemStatSDO
     * @return
     */
    Result<Boolean> batchEditPlanScItem(SalesPlanStatScItemSDO salesPlanScItemStatSDO);

    /**
     * 编辑计划货品
     *
     * @param salesPlanScItemStatSDO
     * @return
     */
    Result<Boolean> editSalesPlanScItem(SalesPlanStatScItemSDO salesPlanScItemStatSDO);

    /**
     * 部门分解
     * @param departmentResponse
     * @return
     */
    Result<Boolean> departmentDecomposition(GoodsOwnershipDepartmentResponse departmentResponse);
}
